import './assets/css/global.css'

// Vuetify
// import 'vuetify/styles'
// import '@mdi/font/css/materialdesignicons.css'
// import { createVuetify } from 'vuetify'
// import * as components from 'vuetify/components'
// import * as directives from 'vuetify/directives'

// Element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { createApp } from 'vue'
import pinia from '@/store'

import App from './App.vue'
import router from './router'


const app = createApp(App)

// 使用ElementPlus
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

// 使用pinia
app.use(pinia)

// 使用router
app.use(router)

// 使用vuetify
// const vuetify = createVuetify({
//   components,
//   directives,
// })
// app.use(vuetify)

app.mount('#app')
